package com.health.db.dao.sm.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.sm.IGoodsOrderContactDao;
import com.health.db.mapper.GoodsOrderContactMapper;
import com.health.db.model.GoodsOrderContact;

/**
 * @author YC
 *
 */
@Component("goodsOrderContactDao")
public class IGoodsOrderContactDaoImpl extends ServiceInterface implements
		IGoodsOrderContactDao {

	
	@Autowired
	GoodsOrderContactMapper goodsOrderContactMapper;
	String recId =":recId:";
	String userId=":userId";
	String goodsId=":goodsId";
	String goodsType=":goodsType";
	String  offset=":OF:";
	String  pageSize=":PS:";
	public GoodsOrderContactMapper getGoodsOrderContactMapper() {
		return goodsOrderContactMapper;
	}
	public void setGoodsOrderContactMapper(
			GoodsOrderContactMapper goodsOrderContactMapper) {
		this.goodsOrderContactMapper = goodsOrderContactMapper;
	}
	@Override
	public int insert(GoodsOrderContact record) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.insert(record);
	}
	@Override
	public int updateStatusByOrderId(GoodsOrderContact record) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.updateStatusByOrderId(record);
	}
	
}
